# NOT RUN {
ip <- itempool(a = c(1.12, 2.1, 1.28), b = c(2, 3.2, 0.21),
id = c("i1", "i2", "i3"))
ip[1]
# Create an Itempool using the first and third element:
ip[c(1, 3)] # Order is important
ip[c(3, 1)]
ip[-2]
ip[c(TRUE, FALSE, TRUE)]
ip[c("i2", "i1")]
# Recycle, i.e. get all elements
ip[TRUE]
# }
Run the code above in your browser using DataLab